package com.hytc.entity;


import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Cart  {
    public int id;
    public String buy_name;
    public double buy_price;
    public double price;
    public double discount;
    public int number;
    public int user_id;
    public int commodity_id;

    public Cart(int id, String buy_name, double buy_price, double price, double discount, int number, int user_id, int commodity_id) {
        this.id = id;
        this.buy_name = buy_name;
        this.buy_price = buy_price;
        this.price = price;
        this.discount = discount;
        this.number = number;
        this.user_id = user_id;
        this.commodity_id = commodity_id;
    }

    public Cart() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBuy_name() {
        return buy_name;
    }

    public void setBuy_name(String buy_name) {
        this.buy_name = buy_name;
    }

    public double getBuy_price() {
        return buy_price;
    }

    public void setBuy_price(double buy_price) {
        this.buy_price = buy_price;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public int getCommodity_id() {
        return commodity_id;
    }

    public void setCommodity_id(int commodity_id) {
        this.commodity_id = commodity_id;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "id=" + id +
                ", buy_name='" + buy_name + '\'' +
                ", buy_price=" + buy_price +
                ", price=" + price +
                ", discount=" + discount +
                ", number=" + number +
                ", user_id=" + user_id +
                ", commodity_id=" + commodity_id +
                '}';
    }
}
